package PTA.javaA;

import java.util.Arrays;
import java.util.Scanner;

public class ex31 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n= sc.nextInt();

        int arr[] = new int[n];
int count=0;
while(count<n){
       try{
           String a= sc.next();
               int s= Integer.parseInt(a);
               arr[count++]=s;
       }catch(NumberFormatException e){
           System.out.println(e);
       }


    }System.out.println(Arrays.toString(arr));
}}
